<?php

namespace addons\qingdongams\model;

use think\Model;
use traits\model\SoftDelete;

/**
 * 团队 成员表
 */
class StaffTeamList Extends Model {
    use SoftDelete;
    protected $name  = 'qingdongams_staff_team_list';
	// 开启自动写入时间戳字段
	protected $autoWriteTimestamp = 'int';
	// 定义时间戳字段名
	protected $createTime = 'createtime';
	protected $updateTime = 'updatetime';
	protected $deleteTime = 'deletetime';

	public function staff() {
		return $this->hasOne(Staff::class, 'id', 'staff_id')->field('id,name,img,post,department_id,status');
	}


}
